<!doctype html>
<html class="no-js" lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>CustomerAdapter</title>
<link href="../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script>
    <script>document.documentElement.classList.replace("no-js", "js");</script>
    <script>const storage = localStorage.getItem("dokka-dark-mode")
      if (storage == null) {
        const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
        if (osDarkSchemePreferred === true) {
          document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
      } else {
        const savedDarkMode = JSON.parse(storage)
        if (savedDarkMode === true) {
          document.getElementsByTagName("html")[0].classList.add("theme-dark")
        }
      }
    </script>
<script type="text/javascript" src="https://unpkg.com/kotlin-playground@1/dist/playground.min.js" async></script>
<script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async></script>
<link href="../../../styles/style.css" rel="Stylesheet">
<link href="../../../styles/main.css" rel="Stylesheet">
<link href="../../../styles/prism.css" rel="Stylesheet">
<link href="../../../styles/logo-styles.css" rel="Stylesheet">
<link href="../../../ui-kit/ui-kit.min.css" rel="Stylesheet">
<script type="text/javascript" src="../../../scripts/safe-local-storage_blocking.js"></script>
<script type="text/javascript" src="../../../scripts/navigation-loader.js" async></script>
<script type="text/javascript" src="../../../scripts/platform-content-handler.js" async></script>
<script type="text/javascript" src="../../../scripts/main.js" defer></script>
<script type="text/javascript" src="../../../scripts/prism.js" async></script>
<script type="text/javascript" src="../../../ui-kit/ui-kit.min.js" defer></script></head>
<body>
<div class="root">
    <header class="navigation theme-dark" id="navigation-wrapper" role="banner">
<a class="library-name--link" href="../../../index.html" tabindex="1">
                    stripe-android
            </a>        <button class="navigation-controls--btn navigation-controls--btn_toc ui-kit_mobile-only" id="toc-toggle" type="button">Toggle table of contents
        </button>
        <div class="navigation-controls--break ui-kit_mobile-only"></div>
        <div class="library-version" id="library-version">
        </div>
        <div class="navigation-controls">
        <ul class="filter-section filter-section_loading" id="filter-section" aria-label="Target filter">
                <button class="platform-tag platform-selector jvm-like" data-active="" aria-pressed="true" data-filter=":paymentsheet/main">androidJvm</button>
            <div class="dropdown filter-section--dropdown" data-role="dropdown" id="filter-section-dropdown">
                <button class="button button_dropdown filter-section--dropdown-toggle" role="combobox" data-role="dropdown-toggle" aria-controls="platform-tags-listbox" aria-haspopup="listbox" aria-expanded="false" aria-label="Toggle source sets"></button>
                <ul role="listbox" id="platform-tags-listbox" class="dropdown--list" data-role="dropdown-listbox" aria-label="Target filter">
                    <div class="dropdown--header"><span>Target filter</span>
                        <button class="button" data-role="dropdown-toggle" aria-label="Close target filter">
                            <i class="ui-kit-icon ui-kit-icon_cross"></i>
                        </button>
                    </div>
                        <li role="option" class="dropdown--option platform-selector-option jvm-like" tabindex="0">
                            <label class="checkbox">
                                <input type="checkbox" class="checkbox--input" id=":paymentsheet/main" data-filter=":paymentsheet/main">
                                <span class="checkbox--icon"></span>
                                androidJvm
                            </label>
                        </li>
                </ul>
                <div class="dropdown--overlay"></div>
            </div>
        </ul>
            <button class="navigation-controls--btn navigation-controls--btn_theme" id="theme-toggle-button" type="button">Switch theme
            </button>
            <div class="navigation-controls--btn navigation-controls--btn_search" id="searchBar" role="button">Search in
                API
            </div>
        </div>
    </header>
    <div id="container">
        <nav id="leftColumn" class="sidebar" data-item-type="SECTION" data-item-config="{&quot;defaultSize&quot;: 280, &quot;minSize&quot;: 200, &quot;maxSize&quot;: 400}">
            <a class="toc--skip-link" href="#main">Skip to content</a>
            <div class="dropdown theme-dark_mobile" data-role="dropdown" id="toc-dropdown">
                <ul role="listbox" id="toc-listbox" class="dropdown--list dropdown--list_toc-list" data-role="dropdown-listbox" aria-label="Table of contents">
                    <div class="dropdown--header">
                            <span>
                                    stripe-android
                            </span>
                        <button class="button" data-role="dropdown-toggle" aria-label="Close table of contents">
                            <i class="ui-kit-icon ui-kit-icon_cross"></i>
                        </button>
                    </div>
                    <div class="sidebar--inner" id="sideMenu"></div>
                </ul>
                <div class="dropdown--overlay"></div>
            </div>
        </nav>
        <div id="resizer" class="resizer" data-item-type="BAR"></div>
        <div id="main" data-item-type="SECTION" role="main">
<div class="main-content" data-page-type="classlike" id="content" pageids="paymentsheet::com.stripe.android.customersheet/CustomerAdapter///PointingToDeclaration//-1685933200">
  <div class="breadcrumbs"><a href="../../index.html">paymentsheet</a><span class="delimiter">/</span><a href="../index.html">com.stripe.android.customersheet</a><span class="delimiter">/</span><span class="current">CustomerAdapter</span></div>
  <div class="cover ">
    <h1 class="cover"><span>Customer</span><wbr><span><span>Adapter</span></span></h1>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">interface </span><a href="index.html">CustomerAdapter</a></div><p class="paragraph">A bridge to your backend to fetch customer-related information. Typically, you will not need to implement this interface yourself. You should instead use <a href="-companion/create.html">CustomerAdapter.create</a>, which manages retrieving and updating a Stripe customer for you.</p><p class="paragraph">The methods in this interface should act on a Stripe <code class="lang-kotlin">Customer</code> object.</p><p class="paragraph">Implement this interface if you would prefer retrieving and updating your Stripe customer object via your own backend instead of using the default implementation.</p><p class="paragraph">Use <a href="-companion/create.html">CustomerAdapter.create</a> to create an instance of a <a href="index.html">CustomerAdapter</a>.</p></div></div>
  </div>
  <div class="tabbedcontent">
    <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="CONSTRUCTOR,TYPE,PROPERTY,FUNCTION">Members</button></div>
    <div class="tabs-section-body">
      <div data-togglable="TYPE">
        <h2 class="tableheader">Types</h2>
        <div class="table"><a data-name="-532491101%2FClasslikes%2F-1685933200" anchor-label="Companion" id="-532491101%2FClasslikes%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="-companion/index.html"><span><span>Companion</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-532491101%2FClasslikes%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">object </span><a href="-companion/index.html">Companion</a></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1557446004%2FClasslikes%2F-1685933200" anchor-label="PaymentOption" id="1557446004%2FClasslikes%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="-payment-option/index.html"><span>Payment</span><wbr><span><span>Option</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1557446004%2FClasslikes%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">sealed </span><span class="token keyword">class </span><a href="-payment-option/index.html">PaymentOption</a></div><div class="brief "><p class="paragraph">A representation of a saved payment method, used for persisting the user's default payment method.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="571379062%2FClasslikes%2F-1685933200" anchor-label="Result" id="571379062%2FClasslikes%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="-result/index.html"><span><span>Result</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="571379062%2FClasslikes%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">sealed </span><span class="token keyword">class </span><a href="-result/index.html">Result</a><span class="token operator">&lt;</span><a href="-result/index.html">T</a><span class="token operator">&gt;</span></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div data-togglable="PROPERTY">
        <h2 class="tableheader">Properties</h2>
        <div class="table"><a data-name="-2109809546%2FProperties%2F-1685933200" anchor-label="canCreateSetupIntents" id="-2109809546%2FProperties%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="can-create-setup-intents.html"><span>can</span><wbr><span>Create</span><wbr><span>Setup</span><wbr><span><span>Intents</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2109809546%2FProperties%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">val </span><a href="can-create-setup-intents.html">canCreateSetupIntents</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html">Boolean</a></div><div class="brief "><p class="paragraph">Whether this backend adapter is able to create setup intents. A SetupIntent is recommended when attaching a new card to a Customer, and required for non-card payments methods. If you are implementing your own <a href="index.html">CustomerAdapter</a>, return true if <a href="setup-intent-client-secret-for-customer-attach.html">setupIntentClientSecretForCustomerAttach</a> is implemented, Otherwise, return false.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="58773772%2FProperties%2F-1685933200" anchor-label="paymentMethodTypes" id="58773772%2FProperties%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="payment-method-types.html"><span>payment</span><wbr><span>Method</span><wbr><span><span>Types</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="58773772%2FProperties%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">val </span><a href="payment-method-types.html">paymentMethodTypes</a><span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">&gt;</span><span class="token operator">?</span></div><div class="brief "><p class="paragraph">A list of payment method types to display to the customer. Valid values include: "card", "us_bank_account" If null or empty, the SDK will dynamically determine the payment methods using your Stripe Dashboard settings.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div data-togglable="FUNCTION">
        <h2 class="tableheader">Functions</h2>
        <div class="table"><a data-name="617189546%2FFunctions%2F-1685933200" anchor-label="attachPaymentMethod" id="617189546%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="attach-payment-method.html"><span>attach</span><wbr><span>Payment</span><wbr><span><span>Method</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="617189546%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="attach-payment-method.html"><span class="token function">attachPaymentMethod</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">paymentMethodId<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="../../../payments-core/com.stripe.android.model/-payment-method/index.html">PaymentMethod</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Attaches a payment method to a customer</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-2091462500%2FFunctions%2F-1685933200" anchor-label="detachPaymentMethod" id="-2091462500%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="detach-payment-method.html"><span>detach</span><wbr><span>Payment</span><wbr><span><span>Method</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-2091462500%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="detach-payment-method.html"><span class="token function">detachPaymentMethod</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">paymentMethodId<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="../../../payments-core/com.stripe.android.model/-payment-method/index.html">PaymentMethod</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Detaches the given payment method from a customer</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1511041366%2FFunctions%2F-1685933200" anchor-label="retrievePaymentMethods" id="1511041366%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="retrieve-payment-methods.html"><span>retrieve</span><wbr><span>Payment</span><wbr><span><span>Methods</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1511041366%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="retrieve-payment-methods.html"><span class="token function">retrievePaymentMethods</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html">List</a><span class="token operator">&lt;</span><a href="../../../payments-core/com.stripe.android.model/-payment-method/index.html">PaymentMethod</a><span class="token operator">&gt;</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Retrieves a list of payment methods attached to a customer</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1962905080%2FFunctions%2F-1685933200" anchor-label="retrieveSelectedPaymentOption" id="1962905080%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="retrieve-selected-payment-option.html"><span>retrieve</span><wbr><span>Selected</span><wbr><span>Payment</span><wbr><span><span>Option</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1962905080%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="retrieve-selected-payment-option.html"><span class="token function">retrieveSelectedPaymentOption</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="-payment-option/index.html">CustomerAdapter.PaymentOption</a><span class="token operator">?</span><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Retrieve the saved payment method option from a data store. If null, the customer does not have a default saved payment method.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="1896550625%2FFunctions%2F-1685933200" anchor-label="setSelectedPaymentOption" id="1896550625%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="set-selected-payment-option.html"><span>set</span><wbr><span>Selected</span><wbr><span>Payment</span><wbr><span><span>Option</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1896550625%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="set-selected-payment-option.html"><span class="token function">setSelectedPaymentOption</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">paymentOption<span class="token operator">: </span><a href="-payment-option/index.html">CustomerAdapter.PaymentOption</a><span class="token operator">?</span></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html">Unit</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Saves the payment option to a data store.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-1219782554%2FFunctions%2F-1685933200" anchor-label="setupIntentClientSecretForCustomerAttach" id="-1219782554%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="setup-intent-client-secret-for-customer-attach.html"><span>setup</span><wbr><span>Intent</span><wbr><span>Client</span><wbr><span>Secret</span><wbr><span>For</span><wbr><span>Customer</span><wbr><span><span>Attach</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1219782554%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="setup-intent-client-secret-for-customer-attach.html"><span class="token function">setupIntentClientSecretForCustomerAttach</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Returns a SetupIntent client secret to attach a new payment method to a customer. This will call your backend to retrieve a client secret if you have provided a setupIntentClientSecretProvider in the <a href="-companion/create.html">CustomerAdapter.create</a> call.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
<a data-name="-936580421%2FFunctions%2F-1685933200" anchor-label="updatePaymentMethod" id="-936580421%2FFunctions%2F-1685933200" data-filterable-set=":paymentsheet/main"></a>
          <div class="table-row table-row_content" data-filterable-current=":paymentsheet/main" data-filterable-set=":paymentsheet/main">
            <div class="main-subrow keyValue ">
              <div class=""><span class="inline-flex">
                  <div><a href="update-payment-method.html"><span>update</span><wbr><span>Payment</span><wbr><span><span>Method</span></span></a></div>
<span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-936580421%2FFunctions%2F-1685933200"></span>
                    <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                  </span></span></div>
              <div>
                <div class="title">
                  <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":paymentsheet/main"><div class="symbol monospace"><span class="token keyword">abstract </span><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="update-payment-method.html"><span class="token function">updatePaymentMethod</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">paymentMethodId<span class="token operator">: </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html">String</a><span class="token punctuation">, </span></span><span class="parameter ">params<span class="token operator">: </span><a href="../../../payments-core/com.stripe.android.model/-payment-method-update-params/index.html">PaymentMethodUpdateParams</a></span></span><span class="token punctuation">)</span><span class="token operator">: </span><a href="-result/index.html">CustomerAdapter.Result</a><span class="token operator">&lt;</span><a href="../../../payments-core/com.stripe.android.model/-payment-method/index.html">PaymentMethod</a><span class="token operator">&gt;</span></div><div class="brief "><p class="paragraph">Updates a payment method with the provided <a href="../../../payments-core/com.stripe.android.model/-payment-method-update-params/index.html">PaymentMethodUpdateParams</a>.</p></div></div></div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
    <div class="footer">
        <div class="footer--container">
            <a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>
            <div class="footer--content">
                <div>
                    <span>Generated by </span>
                    <a class="footer--link footer--link_external" href="https://github.com/Kotlin/dokka">
                        Dokka
                    </a>
                    <div>© 2025 Copyright</div>
                </div>
            </div>
        </div>
    </div>
        </div>
    </div>
</div>
</body>
</html>